<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<style type="text/css">

 	p {text-align:center; color:white; font-size: 40px; background-color: #F20C64; margin-left: 200px;}
  	.headline {margin-top: 0px; margin-bottom: 10px; }
  	.headtext {font-weight: bolder; color:#F20C64; margin-top: 20px; margin-bottom: 0px;}
</style>

<form method="post" action="">
	<table>
		<tr align="center">
			<td><strong>검색조건</strong></td>
				<td>
					<select id="search_type" name="search_type" size="1" >
						<option>선택</option><option value="all">전체검색</option><option value="name">이름</option>
						<option value="birth">생년월일</option><option value="phone">핸드폰번호</option>
						<option value="address">주소</option><option value="joinDate">가입일</option>
					</select>
				<input id="btn" type="text" name="input" size="20">
				<button type="submit" class="btn btn-info btn-sm">검색</button>
			</td>
		</tr>
	</table>
</form><br><br>

<h3 class="headtext">탈퇴회원 관리</h3><hr class="headline">
<table class="table table-bordered" style="width: " id="customerRemoveListForm" border="5">
		<tr align="center" style="background-color:#453949; color: white;">
			<td width="73px"><b>회원ID</b></td>
			<td width="75px"><b>회원이름</b></td>
			<td width="160px"><b>이메일</b></td>
			<td width="150px"><b>탈퇴날자</b></td>
			<td width="200px"><b>탈퇴이유</b></td>
			<td width="75px"><b>복구</b></td>
			<td width="75px"><b>삭제</b></td>
		</tr>
		<c:forEach items="${requestScope.list }" var="customerOut">
		<tr align="center">
			<td>${customerOut.custId }</td>
			<td>${customerOut.name}</td>
			<td>${customerOut.email}</td>
			<td>${customerOut.outDate}</td>
			<td>${customerOut.outReason}</td>
			<td><a href="/${initParam.context_root }/customer/customerRestore.do?custId=${customerOut.custId }"><button>복구</button></a></td>
			<td><a href="/${initParam.context_root }/customer/customerDelete.do?custId=${customerOut.custId }"><button>삭제</button></a></td>
		</tr>
		</c:forEach>
		<tr>
			<td colspan="7" align="center">
				<button><a href="/${initParam.context_root }/customer/customerView.do" style="color: #453949; text-decoration: blink;">탈퇴목록엑셀다운로드</a></button>
			</td>
		</tr>
	</table>
